package com.rahms.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rahms.pojo.entity.CommunityAnnouncement;

import java.util.List;

/**
 * 社区公告服务接口
 */
public interface CommunityAnnouncementService extends IService<CommunityAnnouncement> {
    
    // 获取最新的公告列表
    List<CommunityAnnouncement> getLatestAnnouncements(Integer limit);
    
    // 根据分类获取公告列表
    List<CommunityAnnouncement> getAnnouncementsByCategory(String category, Integer limit);
    
    // 增加公告阅读量
    boolean increaseViewCount(Long announcementId);
}